﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage2.master" AutoEventWireup="true" CodeFile="TaoGianHang.aspx.cs" Inherits="TaoGianHang" %>
<%@ Register TagPrefix="cc1" Namespace="SiteUtils" Assembly="CollectionPager" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
<style type="text/css">
    .tbThongTin
    {
        text-align:center;
        
    }
</style>
<script type="text/javascript">

function HoanTat()
{
return window.confirm("Vui Long");
}


</script>

</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>

<br />
   

    <table border="0" cellpadding="5" cellspacing="0" width="100%" 
        bgcolor="#00CCFF" class="tbThongTin" >
        <tr>
            <td style="text-align:center; font-size:xx-large; font-weight:bold; color:Red;"> Đăng Bán Sản Phẩm </td>
        </tr>
    </table>
    <br />
    
    <table width="100%"  bgcolor="#CC99FF">
        <tr>
            <td style="font-weight:bold; color:Blue; font-size:large;">Thông tin gian hàng</td>
        </tr>
    </table>
     <asp:UpdatePanel ID="UpdatePanel5" runat="server" UpdateMode="Conditional" >
        <ContentTemplate>
             <table id="tbThongTinGianHang" width="60%" border="3" cellpadding="5" cellspacing="0" align="center" style="text-align:center;">
        <tr>
            <td> Ten</td>
            <td>
                <asp:TextBox ID="txtTenGianHang" runat="server" />    
                  <asp:Label ID="lbChuaDienTen" Text="*" ForeColor="Red"  
                runat="server"  Visible="false" />        
            </td>
           
              
          
        </tr>
        <tr>
            <td> Dia chi</td>
            <td>
                <asp:TextBox ID="txtDiaChi" runat="server" />
                  <asp:Label ID="lbChuaDienDiaChi" Text="*" ForeColor="Red"  
                runat="server"  Visible="false" />
            </td>
          
              
        
        </tr>
        <tr>
            <td> So dien thoai</td>
            <td>
                <asp:TextBox ID="txtSoDienThoai" runat="server" />
                   <asp:Label ID="lbChuaDienSDT" Text="*" ForeColor="Red"  
                runat="server"  Visible="false" />
            </td>
      
             
        
        </tr>
    </table>
        </ContentTemplate>
        <Triggers>
            <asp:AsyncPostBackTrigger ControlID="bttHoanTat" EventName="Click" />
        </Triggers>
    </asp:UpdatePanel>
   <br /><br /><br />
    <table width="100%"  bgcolor="#CC99FF">
        <tr>
            <td style="font-weight:bold; color:Blue; font-size:large;">  Chọn logo cho gian hàng</td>
        </tr>
    </table>
    
    <table id="tbLogoGianHang" width="100%" cellspacing="0" cellpadding="0" border="1">
        <tr>
            <td>
                <asp:Image ID="img1" runat="server" ImageUrl="~/Images/logo_gianhang/logo_gianhang1.jpg" 
                 Width="100px" Height="100px" />
            </td>
            <td>
                <asp:Image ID="img2" runat="server" ImageUrl="~/Images/logo_gianhang/logo_gianhang2.jpg" 
                 Width="100px" Height="100px" />
            </td>
            <td>
                <asp:Image ID="img3" runat="server" ImageUrl="~/Images/logo_gianhang/logo_gianhang3.jpg" 
                 Width="100px" Height="100px" />
            </td>
            <td>
                <asp:Image ID="img4" runat="server" ImageUrl="~/Images/logo_gianhang/logo_gianhang4.jpg" 
                 Width="100px" Height="100px" />
            </td>
        </tr>
        <tr>
            <td>
                <input id="rbtLogo1" type="radio" name="LoGo" runat="server" />
            </td>
            <td>
                <input id="rbtLogo2" type="radio" name="LoGo" runat="server" />
            </td>
            <td>
                <input id="rbtLogo3" type="radio" name="LoGo" runat="server" />
            </td>
            <td>
                <input id="rbtLogo4" type="radio" name="LoGo" runat="server" />
            </td>
            
        </tr>
    </table>
    <table width="100%"  bgcolor="#CC99FF">
        <tr>
            <td style="font-weight:bold; color:Blue; font-size:large;" >Chọn sản phẩm cho gian hàng</td>
        </tr>
    </table>
    <asp:UpdatePanel ID="UpdatePanel3" runat="server">
        <ContentTemplate>
         <asp:DataList ID="dtlDanhSachSanPham" runat="server" RepeatColumns="6" 
        onitemcommand="dtlDanhSachSanPham_ItemCommand">
        <ItemTemplate>
           
                    <asp:Label ID="lbTenSanPham" runat="server" Font-Bold="True" 
                Font-Size="Smaller" ForeColor="#0000CC" 
               
                Text='<%# Eval("TenSanPham") %>' Width="110px" Height="50px"></asp:Label>
          
           
            <br />
            <asp:Image ID="Image3" runat="server" Height="70px" 
                ImageUrl='<%# Eval("HinhSanPham","~/Image/{0}") %>' Width="99px" />
         &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
            <br />
            <asp:Label ID="lbGiaBanHienTai" runat="server" Font-Italic="False" Font-Size="Smaller" 
                ForeColor="Red" Text='<%# Eval("GiaBanHienTai") + " VNĐ" %>' BorderStyle="Double" BorderColor="Lime"></asp:Label>
               
                <asp:ImageButton ID="bttAdd" runat="server"
                ImageUrl="~/Images/Symbol-Add.jpg" 
                CommandName="abc" Width="20px"  Height="20px" BorderColor="Yellow"/>
            <br />
         
            
        </ItemTemplate>
</asp:DataList>
        </ContentTemplate>
    </asp:UpdatePanel>
    
   

     <CC1:COLLECTIONPAGER id="CollectionPager2" runat="server"  MaxPages="1">
    </CC1:COLLECTIONPAGER>   
 
    <br />
    <br />
    <asp:UpdatePanel ID="UpdatePanel2" runat="server">
        <ContentTemplate>
            <table width="100%"  bgcolor="#CC99FF">
                <tr>
                    <td style="font-weight:bold; color:Blue; font-size:large;"> Số lượng sản phẩm hiện tại có trong gian hàng : 
                        <asp:Label ID="lbSoLuongSanPham" runat="server" Text="0"/>
                     </td>
                </tr>
            </table>
        </ContentTemplate>
    </asp:UpdatePanel>
    
    <br />
   <%-- <table width="100%" cellpadding="4" border="4" cellspacing="0" style="background-color:White;">
        <tr>
            <td style="width:60%; text-align:left; font-weight:bold;" />
            <td style="width:40%; text-align:left; font-weight:bold; color:Red;" />
        </tr>
    </table>--%>
     <asp:UpdatePanel ID="UpdatePanel1" runat="server">
        <ContentTemplate>
         <table width="100%">
               
                    <tr>
               
            
              <td style="width:90%";>
                        <asp:Label ID="lbBangSanPham" runat="server" Width="100%"></asp:Label>
                    </td>
    
                    <td style="width:10%;" >
                          <asp:ImageButton ID="bttHoanTat" runat="server" Width="60px" Height="60px" 
                              ImageUrl="~/Images/HoanTat.png" ToolTip="Hoàn tất" onclick="bttHoanTat_Click"/>
                    </td>
                </tr>
            </table>
        </ContentTemplate>
       
    </asp:UpdatePanel>
    
   
    <asp:UpdatePanel ID="UpdatePanel4" runat="server">
        <ContentTemplate>
            <asp:Label ID="lbXuongDong" runat="server"  Width="100px" />
        </ContentTemplate>
    </asp:UpdatePanel>
    
  
    
   
</asp:Content>

